package com.gaoqi.springboot_shiro.mapper;


import com.gaoqi.springboot_shiro.pojo.Role;
import com.gaoqi.springboot_shiro.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.context.annotation.Configuration;


@Mapper
public interface UsersMapper {

    void register(User user);

    User findUserByUname(String uname);

    User findRolesByUname(String uname);

    Role findPremissionById(Long rid);
}
